#include <stdio.h>
#include "complex.h"

int main()
{
    struct Complex c1, c2;
    //写一个函数实现从键盘上获取数据对一个复数进行赋值 
    complex_input_data_2(&c1);
    complex_input_data_2(&c2);
    Print_complex(c1);
    Print_complex(c2);
    //运算
    struct Complex c = complex_add(c1,c2);
    Print_complex(c);
    c = complex_sub(c1,c2);
    Print_complex(c);
    c = complex_mul(c1,c2);
    Print_complex(c);
    c = complex_div(c1,c2);
    Print_complex(c);
}